<%-- 
    Document   : home
    Created on : 2 avr. 2010, 14:28:05
    Author     : SaLaH
--%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
        <script type="text/javascript" src="cart.js"></script>
        <title>CinéShop</title>
    </head>

    <body>
    <div class="PageBackgroundGradient"></div>
    <div class="Main">
        <div class="Sheet">
            <div class="Sheet-tl"></div>
            <div class="Sheet-tr"><div></div></div>
            <div class="Sheet-bl"><div></div></div>
            <div class="Sheet-br"><div></div></div>
            <div class="Sheet-tc"><div></div></div>
            <div class="Sheet-bc"><div></div></div>
            <div class="Sheet-cl"><div></div></div>
            <div class="Sheet-cr"><div></div></div>
            <div class="Sheet-cc"></div>
            <div class="Sheet-body">
              <%@include file="header.jsp" %>
                <div class="contentLayout">
              <%@include file="menu.jsp" %>
                    <div class="content">
                         <div class="cart"> <a href="ServletPanier"><img src="images/Shopping_Cart.png" alt="" title="Panier"></a></div>
                       
         
               <c:set var="total" value="0"/>

               <c:forEach var="f" items="${listeDesFilms}">

                        <c:set var="total" value="${total+1}"/>

                </c:forEach>
              
               <p> <strong> ${total} </strong> résultat(s).</p>
     
        
                             <c:set var="total" value="0"/>
                <c:forEach var="f" items="${listeDesFilms}">
 


                      
                        
                        <table border="0" width="100%">
    
                    <tr>
                        <td width="15%" valign="middle">  <a href="detailFilmServlet?id=${f.id}"><img src="images/films/${f.image}" width ="70"  alt=""></a></td>
                        <td valign="top" align="left">
                           <a href="detailFilmServlet?id=${f.id}"><strong>${f.titre}</strong></a><br/>
                         de <strong><i>${f.realisateur.nom} ${f.realisateur.prenom}</i></strong><br/><br/>
                                                 ${f.resume} <br/><br/>
                                               <strong>Acteurs:</strong>
                             <c:forEach var="acteur" items="${f.acteurs}">
                                 ${acteur.nom} ${acteur.prenom},
                              </c:forEach>

                        </td>
                        <td width ="15%" valign="top"><strong> ${f.prix} € </strong><br/>
                          
                        </td>
                      
                       
                        <c:set var="total" value="${total+1}"/>
                       
                        
                    </tr>
                    <tr><td colspan="3"><hr style="  border: none; height: 1px; width: 100%; align: center;  border-top: 1px dotted; "></td></tr>
           

                        </table>

                         </c:forEach>
                       
                    </div>
                </div>

            </div>
        </div>

    </div>

</body>

</html>

